package master.svn;

public class ClassA {
    
    private int num;
    private String str;

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) {
            return true;
        }
        if (!(object instanceof ClassA)) {
            return false;
        }
        final ClassA other = (ClassA) object;
        if (num != other.num) {
            return false;
        }
        if (!(str == null ? other.str == null : str.equals(other.str))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        final int PRIME = 37;
        int result = 1;
        result = PRIME * result + num;
        result = PRIME * result + ((str == null) ? 0 : str.hashCode());
        return result;
    }

    public int getNum() {
        return num;
    }

    public void setStr(String str) {
        this.str = str;
    }

    public String getStr() {
        return str;
    }

    public ClassA() {
        super();
    }
    
    public String toString(){
        return "Valor1: "+getNum()+", Valor2: "+getStr();
    }
}
